package cn.com.lms.business.learning.persistence.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户学习计划列表对象
 */
@Data
public class UserLearningListVo {

    @Schema(description = "计划ID")
    private Long id;
    @Schema(description = "计划是否完成")
    private Character isOver;
    @Schema(description = "封面图片")
    private String coverUrl;
    @Schema(description = "分数")
    private Integer score;
    @Schema(description = "计划完成时间")
    private Date finishTime;
    @Schema(description = "已学时长")
    private BigDecimal hours;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "计划名称")
    private String planName;
    @Schema(description = "总学时")
    private BigDecimal sumHours;

    public BigDecimal getSumHours() {
        return sumHours;
    }

    public void setSumHours(BigDecimal sumHours) {
        this.sumHours = sumHours == null ? new BigDecimal(0 ) : sumHours;
    }
}
